<?php

include_once"../cofig.php";

$uesrname = $_post['username'];
$password = $_post['password'];
    
$sql = "
        select *
        from admin
        where username='$username' and 
        password='$password'
        ";
$result = $conn->query($sql);

if($result->num_rows > 0){
    header("location:index.html");
}else{
    header("location:login.html");
}

?>

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

